package net.hn.hnms.biz.attendance.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * Created on 2022/8/15.
 *
 * @author ly
 * @desc: 公用实体参数
 */
@Data
public class BaseModel {

    /**
     * 煤矿编码
     */
    @TableField(value = "mine_code", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "煤矿编码",hidden=true)
    private String mineCode;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间",hidden=true)
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 创建人ID
     */
    @TableField(value = "create_user_id", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建人ID",hidden=true)
    private String createUserId;
    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间",hidden=true)
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    /**
     * 更新人ID
     */
    @TableField(value = "update_user_id", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新人ID",hidden=true)
    private String updateUserId;
    /**
     * 删除标记,0正常,1删除
     */
    @ApiModelProperty(value = "删除标记,0正常,1删除",hidden=true)
    @TableLogic(value = "0", delval = "1")
    @TableField(value = "del_flag", fill = FieldFill.INSERT)
    private String delFlag;
}
